package be.ac.ua.comp.projectGPT.Jobs;

import java.util.Observable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Abstraction for a job. 
 */
public abstract class Job extends Observable {
    
    private static int currentId = 0;
    private int        id;
    protected Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

    protected Job() {
        logger.info("Creating");
        id = currentId++;
        logger = LoggerFactory.getLogger(this.getClass().getSimpleName()+" "+id);
    }

    public int getId() {
        return id;
    }
}
